FIND SUB STRING$

This command will find the first occurance of the substring within the specified source string.

  Syntax
Return Integer=FIND SUB STRING$(source, string)
  Parameters
source
String
The source string
string
String
The substring to search for

  Returns

The character index within the source string that locates the substring

  Example Code
a$="dark basic pro by lee bamber"
a=find sub string$(a$,"pro")
for t=a to (a+len("pro")-1)
print mid$(a$,t);
next t
do
loop
  See also

TEXT Commands Menu
Index